package com.jiangnan.api.service

import com.jiangnan.entity.BookRecommendationDTO
import com.jiangnan.entity.Res
import retrofit2.http.GET
import retrofit2.http.Query

interface RecommendationApiService {
    @GET("recommend")
    suspend fun getRecommendations(
        @Query("userId") userId: Int,
        @Query("topN") topN: Int = 10
    ): List<BookRecommendationDTO>


    @GET("rating")
    suspend fun getRating(
        @Query("userId") userId: Int,
        @Query("bookId") bookId: Int
    ): Res<Double>
}